function myready() {
	changeh(document.documentElement.scrollHeight+500);
	$(".editall").click(function() {
		var passtime = $(".passtime").val();
		var livetime = $(".livetime").val();
		var maxpc = $(".maxpc").val();
		var tzjg = $(".tzjg").val();
		var supass= $(".supass").val();
		var reseted = $(".reseted").val();
		var editstart = $(".editstart").val();
		var editend = $(".editend").val();
		var moneytype = $(".moneytype").val();
		var comattpeilv = $(".comattpeilv").prop('checked') ? 1 : 0;
		var flyflag = $(".flyflag").prop('checked') ? 1 : 0;
		var autobaoma = $(".autobaoma").prop('checked') ? 1 : 0;
		var ifopen = $(".ifopen").prop('checked') ? 1 : 0;
		var editzc = $(".editzc").prop('checked') ? 1 : 0;
		var deluser = $(".deluser").prop('checked') ? 1 : 0;
		var autoresetpl = $(".autoresetpl").prop('checked') ? 1 : 0;
		var autold = $(".autold").prop('checked') ? 1 : 0;
		var plresetfs = $(".plresetfs").val();
		var loginfenli = $(".loginfenli").prop('checked') ? 1 : 0;
		var zcmode = $(".zcmode").val();
		var plc = $(".plc").val();
		var minje = $(".minje").val();
		
        str = "&passtime="+passtime;
		str += "&livetime="+livetime;
		str += "&maxpc="+maxpc;
		str += "&tzjg="+tzjg;
		str += "&supass="+supass;
		str += "&reseted="+reseted;
		str += "&editstart="+editstart;
		str += "&editend="+editend;
		str += "&moneytype="+moneytype;
		str += "&comattpeilv="+comattpeilv;
		str += "&flyflag="+flyflag;
		str += "&autobaoma="+autobaoma;
		str += "&ifopen="+ifopen;
		str += "&editzc="+editzc;
		str += "&deluser="+deluser;
		str += "&autoresetpl="+autoresetpl;
		str += "&autold="+autold;
		str += "&plresetfs="+plresetfs;
		str += "&loginfenli="+loginfenli;
		str += "&zcmode="+zcmode;
		str += "&plc="+plc;
		str += "&minje="+minje;


		
		$.ajax({
			type: 'POST',
			url: 'sysconfig.php',
			data: 'xtype=setsys' + str,
			success: function(m) {			

				if (Number(m) == 1) {
					alert('ok');
					window.location.href = window.location.href
				}
			}
		})
	});
}